package com.mdd.service.agreement;

import com.alibaba.fastjson.JSONObject;
import com.alipay.api.AlipayApiException;
import com.alipay.api.AlipayClient;
import com.alipay.api.domain.AlipayUserAgreementPageSignModel;
import com.alipay.api.domain.AlipayUserAgreementUnsignModel;
import com.alipay.api.response.AlipayUserAgreementPageSignResponse;
import com.alipay.api.response.AlipayUserAgreementQueryResponse;
import com.alipay.api.response.AlipayUserAgreementUnsignResponse;
import com.mdd.validate.agreement.AgreementUnsignInfo;
import com.mdd.validate.agreement.UserAgreementQuery;

/**
 * 代扣授权
 * <p>
 * {@code @Description}
 * @Author 幻速
 * {@code @Date} 2023/10/30 20:22
 **/
public interface UserAgreementService {
    AlipayUserAgreementPageSignResponse userAgreementSign(AlipayClient alipayClient, AlipayUserAgreementPageSignModel alipayUserAgreementPageSignModel,String notifyUrl) throws AlipayApiException;
    AlipayUserAgreementUnsignResponse userAgreementUnsign(AlipayClient alipayClient, AlipayUserAgreementUnsignModel alipayUserAgreementUnsignModel) throws AlipayApiException;
    AlipayUserAgreementUnsignResponse userAgreementUnsign(AlipayClient alipayClient, JSONObject bizContent) throws AlipayApiException;
    AlipayUserAgreementQueryResponse userAgreementQuery(AlipayClient alipayClient, UserAgreementQuery userAgreementQuery) throws AlipayApiException;
}
